package qing.service;

import java.util.List;

import org.hibernate.Query;

public interface IService<T> {

	public T find(Class<T> class1, int id);

	public void create(T basebean);

	public void update(T basebean);

	public void delete(T basebean);

	public void delete(Class<T> class1, int id);

	public List<T> list(String hql);

	public List<T> list(String hql, Object[] objects);

	public int getTotalCount(String hql, Object... objects);

	public List<T> list(String hql, int firstResult, int maxSize, Object... objects);

	public Query createQuery(String hql);
}
